import Layout from '@/layout'

const controlSaleRouter = [{
    path: '/control-sale',
    component: Layout,
    redirect: '/control-sale/index',
    alwaysShow: true, // will always show the root menu
    name: 'controlSale',
    meta: {
        title: '控销管理',
        roles: ['admin', 'editor'], // you can set roles in root nav
        icon: 'el-icon-arrow-right'
    },
    children:[
        {
            path: 'manage',
            component: () => import('@/views/controlSale'),
            name: 'controlSaleIndex',
            meta: { title: '控销管理' }
        },
        {
            path: 'goods',
            component: () => import('@/views/controlSale/goods'),
            name: 'controlSaleGoods',
            meta: { title: '商品配置' },
            hidden: true
        },
    ]
}]
export default controlSaleRouter